
#include <Square.h>

Square::Square(unsigned int width):rectangle_m(width,width)
{
}

unsigned int 
Square::getArea() const
{
	return rectangle_m.getArea();
}

unsigned int 
Square::getPerimeter() const
{
	return rectangle_m.getPerimeter();
}

void Square::setWidth(unsigned int width) 
{
        rectangle_m.setWidth(width);
        rectangle_m.setHeight(width);
}

